package com.imu.purse.modules.trade.service;

import java.math.BigDecimal;
import java.util.List;
import com.imu.purse.modules.trade.entity.PriequityEntity;

/**
 * 私募明细
 * @author sunhongwei
 * @email sunhongwei@jshijian.com
 * @date 2018-03-22 10:33:20
 * Copyright (c) 2017 武汉极时间科技有限公司 版权所有 
 * Jshijian aloha CO.,LTD. All Rights Reserved. 
 */
public interface PriequityService 
{
	/****
	 * 插入私募明细
	 * @param tradeInfo
 	 * @date 2018-03-22 10:33:20
	 * @return
	 */
    public int save(final PriequityEntity tradeInfo);
    
    /****
	 * 删除私募明细
	 * @param ids
 	 * @date 2018-03-22 10:33:20
	 * @return
	 */
    public boolean delete(final String ...ids);
    
    /****
	 * 修改私募明细
	 * @param tradeInfo
 	 * @date 2018-03-22 10:33:20
	 * @return
	 */
    public int update(final PriequityEntity tradeInfo);
    
    /****
	 * 修改私募明细
	 * @param tradeInfo
 	 * @date 2018-03-22 10:33:20
	 * @return
	 */
    public BigDecimal priMoney(final String key, final PriequityEntity tradeInfo);
    
    /****
	 * 私募GET
	 * @param tradeInfo
 	 * @date 2018-03-22 10:33:20
	 * @return
	 */
 	public BigDecimal priGet(final String key, final PriequityEntity dto);
    
     /****
	 * 插入或跟新私募明细
	 * @param tradeInfo
 	 * @date 2018-03-22 10:33:20
	 * @return
	 */
    public int saveUpdate(final PriequityEntity tradeInfo);
    
    /****
	 * 根据ID查询私募明细
	 * @param id
 	 * @date 2018-03-22 10:33:20
	 * @return
	 */
    public PriequityEntity findById(final Long id);
    
    /****
   	 * 分页查询私募明细
	 * @param tradeInfo
 	 * @date 2018-03-22 10:33:20
   	 * @return
   	 */
    public List<PriequityEntity> queryList(final PriequityEntity tradeInfo);
}
